<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
         /* 
            需求：将数组进行倒序
                实现思路：将数组倒着遍历就可以了
         */
        var arr = ['aa','bb','cc'];
        var resultArr = [];

        for(var i = arr.length-1;i>=0;i--){
            resultArr[resultArr.length] = arr[i];
        }

        console.log(resultArr);
    </script>
</head>
<body>
    
</body>
</html>